Skip to content

Commit

Permalink
CNJR-2733 Update package information
Browse files Browse the repository at this point in the history
Added mule-extension as packaging in pom and Removed unused imports i…
  • Loading branch information
Brugu Maharishi authored and GitHub Enterprise committed Feb 1, 2024
2 parents e6e57e6 + e626e5b commit 983de6a
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 15 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.0.3] - 2024-02-01
- Update packaging information

## [1.0.2] - 2024-01-23
- Update artifact information

Expand Down
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
<groupId>com.cyberark</groupId>
<artifactId>conjur-mule-connector</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<packaging>mule-extension</packaging>
<!-- <packaging> value should be pom instead of mule-extension while
deploying
to the exchange or cloudhub -->

<name>Conjur MuleSoft Custom Connector </name>
<description>Conjur Credentials Provider for MuleSoft Applications</description>
<parent>
<groupId>org.mule.extensions</groupId>
<artifactId>mule-modules-parent</artifactId>
<version>1.1.3</version>
</parent>
<url>https://github.com/cyberark/conjur-mulesoft-connector</url>
<licenses>
<license>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.cyberark.conjur.domain.ConjurConfiguration;
import com.cyberark.conjur.error.ConjurErrorProvider;
import com.cyberark.conjur.error.ConjurErrorTypes;
import com.cyberark.conjur.sdk.ApiException;
import com.cyberark.conjur.sdk.endpoint.SecretsApi;
import com.cyberark.conjur.service.ConjurService;
import com.cyberark.conjur.service.ConjurServiceImpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThrows;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.mockStatic;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.MockedStatic;
import org.mockito.junit.MockitoJUnitRunner;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
package com.cyberark.conjur.core;

import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.mockStatic;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.MockedStatic;
import org.mockito.junit.MockitoJUnitRunner;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public void test() {
assertNotEquals(expectedObj, provider);
}

@SuppressWarnings("unlikely-arg-type")
@Test
public void testErrorTypes()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.cyberark.conjur.mulesoft.internal;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.cyberark.conjur.mulesoft.internal;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.mockStatic;
Expand All @@ -12,7 +11,6 @@
import org.mockito.MockedStatic;
import org.mockito.junit.MockitoJUnitRunner;

import com.cyberark.conjur.core.ConjurConnection;
import com.cyberark.conjur.domain.ConjurConfiguration;
import com.cyberark.conjur.sdk.ApiException;

Expand Down Expand Up @@ -56,6 +54,7 @@ public void setup() {
@Test
public void testConstructor() {

@SuppressWarnings("unused")
Object expectedObj = new ConjurMuleOperations();

}
Expand Down Expand Up @@ -95,7 +94,7 @@ public void testRetrieveException() throws ApiException {
String errorCode = "404";
String errorMsg = "UnAuthorized";
try {
String val = (String) connection.getValue();
assertNotNull(connection.getValue());

} catch (Exception e) {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
package com.cyberark.conjur.service;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThrows;
import static org.mockito.Mockito.mock;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;

import com.cyberark.conjur.constant.ConjurConstant;
import com.cyberark.conjur.core.ConjurConnection;
import com.cyberark.conjur.domain.ConjurConfiguration;
import com.cyberark.conjur.sdk.ApiException;
import com.cyberark.conjur.sdk.endpoint.SecretsApi;
Expand Down

0 comments on commit 983de6a

Please sign in to comment.