• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FIWARE / contract-management / #58

19 Aug 2025 07:56AM UTC coverage: 1.654% (-0.07%) from 1.725%
#58

push

web-flow
Merge pull request #10 from FIWARE/policy-support

Policy support

2 of 67 new or added lines in 4 files covered. (2.99%)

25 existing lines in 3 files now uncovered.

559 of 33806 relevant lines covered (1.65%)

0.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/org/fiware/iam/PAPAdapter.java
1
package org.fiware.iam;
2

3
import io.micronaut.http.HttpResponse;
4
import jakarta.inject.Singleton;
5
import lombok.RequiredArgsConstructor;
6
import lombok.extern.slf4j.Slf4j;
7
import org.fiware.iam.odrl.pap.api.DefaultApiClient;
8
import reactor.core.publisher.Mono;
9

10
import java.util.Map;
11

12
/**
13
 * Responsible for handling connections with the PAP.
14
 */
15
@Singleton
16
@RequiredArgsConstructor
NEW
17
@Slf4j
×
18
public class PAPAdapter {
19

20
        private final DefaultApiClient papClient;
21

22
        public Mono<Boolean> createPolicy(Map<String, Object> policy) {
NEW
23
                return papClient.createPolicy(policy).map(HttpResponse::code).map(code -> code >= 200 && code < 300);
×
24
        }
25
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc