serenity-bdd / serenity-jira

14 stars 27 forks source link

Properties "jira.url", "serenity.pulic.url" doesn't work with serenity.conf file #99

Open Remneva opened 4 years ago

Remneva commented 4 years ago

Hello, i have a problem with two-way Integration with Jira and serenity.conf file.

When I use serenity-jira-plugin with serenity.properties everything works as expected. But it doesn't work when i replace properties in serenity.conf file because jira.url, serenity.issue.tracker.url, serenity.requirement.types doesn't pars without double quotes. And when I include it in double quotes Integration with Jira doesn't work.

What can i do to solve this problem?

Error:
1) Error in custom provider, com.typesafe.config.ConfigException$Parse: src/test/resources/serenity.conf: 16: Expecting close brace } or a comma, got ':' (if you intended ':' to be part of a key or string value, try enclosing the key or value in double quotes, or you may be able to rename the file .properties rather than .conf)

Caused by: com.typesafe.config.ConfigException$Parse: src/test/resources/serenity.conf: 16: Expecting close brace } or a comma, got ':' (if you intended ':' to be part of a key or string value, try enclosing the key or value in double quotes, or you may be able to rename the file .properties rather than .conf)

My serenity.conf file:

environments {
        all {
feature.file.encoding="UTF-8"
serenity.report.encoding="UTF-8"
serenity.project.name="Service Platform"
serenity.maintain.session="true"
serenity.features.directory="features"
report.timeout="60"
jira.url=https://jira.******.ru/jira
jira.project=XXX
jira.username=yyy
jira.password=zzz
serenity.requirement.types=story, task, bug
serenity.jira.alwaysnewcomment=true
serenity.issue.tracker.url="https://jira.*****.ru/*****"
serenity.public.url=https://jenkins.sp.*****.ru/*****
serenity.jira.workflow.active=true
}
}

My dependencies:

<dependency>
    <groupId>net.serenity-bdd</groupId>
    <artifactId>serenity-jira-requirements-provider</artifactId>
    <version>1.12.0</version>
</dependency>
<dependency>
    <groupId>net.serenity-bdd</groupId>
    <artifactId>serenity-jira-plugin</artifactId>
    <version>1.12.0</version>
</dependency>
<serenity-core.version>2.0.70</serenity-core.version>
<serenity-maven-plugin.version>2.0.70</serenity-maven-plugin.version>

Any help appreciated