testaro 51.0.0 → 51.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -781,13 +781,13 @@ The arguments and behaviors described above for execution by a module apply here
781
781
 
782
782
  An instance of Testaro, an _agent_, can poll servers for jobs to be performed.
783
783
 
784
- Network watching is governed by environment variables of the form `NETWATCH_URL_0_JOB` and `NETWATCH_URL_0_REPORT`, and by an environment variable `NETWATCH_URLS`.
784
+ Network watching is governed by environment variables of the form `NETWATCH_URL_0_JOB`, `NETWATCH_URL_0_OBSERVE`, and `NETWATCH_URL_0_REPORT`, and by an environment variable `NETWATCH_URLS`.
785
785
 
786
- You can create as many pairs of `…JOB` and `…REPORT` variables as you want, one pair for each server that the agent may get jobs from. Each pair has a different number inside the variable name. The `…JOB` variable is the URL that the agent needs to send a job request to. The `…REPORT` variable is the URL that the agent needs to send a completed report to. Each URL can contain segments and/or query parameters that identify the purpose of the request
786
+ You can create as many triples of `…JOB`, `OBSERVE`, and `…REPORT` variables as you want, one triple for each server that the agent may get jobs from. Each triple has a different number inside the variable name. The `…JOB` variable is the URL that the agent needs to send a job request to. The `…OBSERVE` variable is the URL that the agent needs to send granular job progress messages to. The `…REPORT` variable is the URL that the agent needs to send a completed report to. Each URL can contain segments and/or query parameters that identify the purpose of the request, the identity and authorization of the agent, etc.
787
787
 
788
788
  The `NETWATCH_URLS` variable has a value of the form `0,3,4`. This is a comma-delimited list of the numbers of the servers to be polled.
789
789
 
790
- Once a Testaro instance obtains a network job from one of the servers, Testaro performs it and adds the result data to the job, which then becomes a report. Testaro also makes its `AGENT` value the value of the `sources.agent` property of the report. Testaro then sends the report in a `POST` request to the report URL with the same server number.
790
+ Once a Testaro instance obtains a network job from one of the servers, Testaro performs it and adds the result data to the job, which then becomes a report. Testaro also makes its `AGENT` value the value of the `sources.agent` property of the report. Testaro then sends the report in a `POST` request to the report URL with the same server number. If granular reporting is desired, Testaro sends progress messages to the observation URL.
791
791
 
792
792
  Network watching can be repeated or 1-job. 1-job watching stops after 1 job has been performed.
793
793
 
@@ -828,6 +828,7 @@ JOBDIR=../testing/jobs
828
828
  NETWATCH_URL_0_JOB=http://localhost:3000/api/assignJob/agentabc:abcpw
829
829
  NETWATCH_URL_0_OBSERVE=http://localhost:3000/api/granular/agentabc:abcpw
830
830
  NETWATCH_URL_0_REPORT=http://localhost:3000/api/takeReport/agentabc:abcpw
831
+ NETWATCH_URLS=0
831
832
  PUPPETEER_DISABLE_HEADLESS_WARNING=true
832
833
  REPORTDIR=../testing/reports
833
834
  WAITS=0
package/dirWatch.js CHANGED
@@ -97,6 +97,9 @@ const wait = ms => {
97
97
  1: interval in seconds from a no-job check to the next check.
98
98
  */
99
99
  exports.dirWatch = async (isForever, intervalInSeconds) => {
100
+ intervalInSeconds ||= 5;
101
+ intervalInSeconds = Math.max(intervalInSeconds, 5);
102
+ console.log(intervalInSeconds);
100
103
  console.log(`Starting to watch directory ${jobDir}/todo for jobs`);
101
104
  let notYetRun = true;
102
105
  // As long as watching as to continue:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "51.0.0",
3
+ "version": "51.0.2",
4
4
  "description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {