Skip to content

Commit

Permalink
"Fix AsyncApiSamplerTest issues"
Browse files Browse the repository at this point in the history
  • Loading branch information
GracielaMéndezOlmos committed Nov 27, 2023
1 parent 1f79027 commit 6226e34
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
package com.sngular.kloadgen.sampler;

import com.sngular.kloadgen.extractor.ApiExtractor;
import com.sngular.kloadgen.parsedschema.ParsedSchema;
import com.sngular.kloadgen.processor.fixture.JsonSchemaFixturesConstants;
import com.sngular.kloadgen.testutil.FileHelper;
import com.sngular.kloadgen.util.ProducerKeysHelper;
import com.sngular.kloadgen.util.PropsKeysHelper;
import org.apache.jmeter.threads.JMeterContext;
import org.apache.jmeter.threads.JMeterContextService;
import org.apache.jmeter.threads.JMeterVariables;
Expand Down Expand Up @@ -52,11 +56,11 @@ void testAsyncApiSampleBasic() throws IOException {
}*/

/*

public JMeterVariables getVariablesJsonSchema() throws IOException {

final File testFile = fileHelper.getFile("/asyncapi/event-api.yml");
final ParsedSchema parsedSchema = SchemaParseUtil.getParsedSchema(testFile, "JSON");
final ParsedSchema parsedSchema = new ParsedSchema(testFile, "JSON");

final var variables = new JMeterVariables();
variables.put(PropsKeysHelper.KEY_SCHEMA_TYPE, "JSON");
Expand All @@ -67,7 +71,7 @@ public JMeterVariables getVariablesJsonSchema() throws IOException {
variables.putObject(PropsKeysHelper.VALUE_SCHEMA_PROPERTIES, JsonSchemaFixturesConstants.SIMPLE_SCHEMA_NONREQUIRED);
variables.put(ProducerKeysHelper.KEY_NAME_STRATEGY, "theStrategy");
return variables;
}*/
}



Expand Down

0 comments on commit 6226e34

Please sign in to comment.