Commit 8efae025 authored by kesnar's avatar kesnar
Browse files

refactor: change ztp naming for benchmark scripts

parent 4075dff0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/"

# Set the list of components, separated by spaces, you want to build images for, and deploy.
export TFS_COMPONENTS="context device automation monitoring pathcomp service slice compute webui"
export TFS_COMPONENTS="context device ztp monitoring pathcomp service slice compute webui"

# Set the tag you want to use for your images.
export TFS_IMAGE_TAG="dev"
+2 −2
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ import exec from "k6/execution";
import { check, sleep } from 'k6';

const client = new grpc.Client();
client.load(['../../../../proto'], 'automation.proto');
client.load(['../../../../proto'], 'ztp.proto');

export const data = [];
for (let i = 1; i < 801; i++) {
@@ -51,7 +51,7 @@ export default () => {
  });

  var item = data[exec.scenario.iterationInInstance];
  const response = client.invoke('automation.AutomationService/ZtpAdd', item);
  const response = client.invoke('ztp.ZTPService/ZtpAdd', item);

  check(response, {
    'status is OK': (r) => r && r.status === grpc.StatusOK,
+2 −2
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ import exec from "k6/execution";
import { check, sleep } from 'k6';

const client = new grpc.Client();
client.load(['../../../../proto'], 'automation.proto');
client.load(['../../../../proto'], 'ztp.proto');

export const data = [];
for (let i = 1; i < 801; i++) {
@@ -51,7 +51,7 @@ export default () => {
  });

  var item = data[exec.scenario.iterationInInstance];
  const response = client.invoke('automation.AutomationService/ZtpDelete', item);
  const response = client.invoke('ztp.ZTPService/ZtpDelete', item);

  check(response, {
    'status is OK': (r) => r && r.status === grpc.StatusOK,
Loading