Skip to content

Commit 3d9c90a

Browse files
authored
Merge pull request #967 from NHSDigital/feature/eema1-NRL-753-capabilityDeployFix
NRL-753 fix capability statement endpoint deployment
2 parents b565f86 + a5848ff commit 3d9c90a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

terraform/infrastructure/modules/api_gateway/api_gateway.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ resource "aws_api_gateway_method" "capability" {
1616
resource_id = aws_api_gateway_resource.capability.id
1717
http_method = "GET"
1818
authorization = "NONE"
19+
20+
depends_on = [aws_api_gateway_resource.capability]
1921
}
2022

2123
resource "aws_api_gateway_integration" "capability" {
@@ -63,6 +65,11 @@ resource "aws_api_gateway_deployment" "api_gateway_deployment" {
6365

6466
depends_on = [
6567
aws_api_gateway_rest_api.api_gateway_rest_api,
68+
aws_api_gateway_resource.capability,
69+
aws_api_gateway_method.capability,
70+
aws_api_gateway_integration.capability,
71+
aws_api_gateway_method_response.capability_200,
72+
aws_api_gateway_integration_response.capability,
6673
aws_api_gateway_integration_response.head_integration_response
6774
]
6875
}

tests/smoke/scenarios/api_capability_statement_lookup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import pytest
2-
31
from tests.utilities.api_clients import ConsumerTestClient, ProducerTestClient
42

53

6-
@pytest.mark.skip(reason="Capability statements aren't working reliably at the minute")
74
def test_read_api_capability_statements(
85
consumer_client: ConsumerTestClient, producer_client: ProducerTestClient
96
):

0 commit comments

Comments
 (0)