Skip to content

Commit

Permalink
Revert "create api gateway test (#3349)"
Browse files Browse the repository at this point in the history
This reverts commit 0662943.
  • Loading branch information
cbeauchesne authored Nov 21, 2024
1 parent 8031afc commit 173aeb4
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 158 deletions.
17 changes: 0 additions & 17 deletions docs/weblog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,23 +512,6 @@ By default, the generated event has the following specification:

Values can be changed with the query params called `event_name`.

### GET '/inferred-proxy/span-creation'

This endpoint is supposed to be hit with the necessary headers that are used to create inferred proxy
spans for routers such as AWS API Gateway. Not including the headers means a span will not be created by the tracer
if the feature exists.

The endpoint supports the following query parameters:
- `status_code`: str containing status code to used in API response

The headers necessary to create a span with example values:
`x-dd-proxy-request-time-ms`: start time in milliseconds
`x-dd-proxy-path`: "/api/data",
`x-dd-proxy-httpmethod`: "GET",
`x-dd-proxy-domain-name`: "system-tests-api-gateway.com",
`x-dd-proxy-stage`: "staging",
`x-dd-proxy`: "aws-apigateway",

### GET /users

This endpoint calls the appsec blocking SDK functions used for blocking users. If the expected parameter matches one of
Expand Down
2 changes: 0 additions & 2 deletions manifests/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ tests/:
Test_DsmSQS: missing_feature
Test_Dsm_Manual_Checkpoint_Inter_Process: missing_feature
Test_Dsm_Manual_Checkpoint_Intra_Process: missing_feature
test_inferred_proxy.py:
Test_AWS_API_Gateway_Inferred_Span_Creation: missing_feature
test_otel_drop_in.py:
Test_Otel_Drop_In: missing_feature
parametric/:
Expand Down
2 changes: 0 additions & 2 deletions manifests/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,6 @@ tests/:
Test_DsmSQS: v2.48.0
Test_Dsm_Manual_Checkpoint_Inter_Process: missing_feature
Test_Dsm_Manual_Checkpoint_Intra_Process: missing_feature
test_inferred_proxy.py:
Test_AWS_API_Gateway_Inferred_Span_Creation: missing_feature
test_otel_drop_in.py:
Test_Otel_Drop_In: missing_feature
k8s_lib_injection/:
Expand Down
2 changes: 0 additions & 2 deletions manifests/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,6 @@ tests/:
Test_Dsm_Manual_Checkpoint_Intra_Process:
"*": irrelevant
net-http: missing_feature (Endpoint not implemented)
test_inferred_proxy.py:
Test_AWS_API_Gateway_Inferred_Span_Creation: missing_feature
test_otel_drop_in.py:
Test_Otel_Drop_In: missing_feature
parametric/:
Expand Down
2 changes: 0 additions & 2 deletions manifests/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1426,8 +1426,6 @@ tests/:
Test_Dsm_Manual_Checkpoint_Intra_Process:
"*": irrelevant
spring-boot: bug (AIDM-325)
test_inferred_proxy.py:
Test_AWS_API_Gateway_Inferred_Span_Creation: missing_feature
test_mongo.py:
Test_Mongo: bug (APMAPI-729)
test_otel_drop_in.py:
Expand Down
4 changes: 0 additions & 4 deletions manifests/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,6 @@ tests/:
Test_Dsm_Manual_Checkpoint_Intra_Process:
'*': irrelevant
express4: *ref_5_20_0
test_inferred_proxy.py:
Test_AWS_API_Gateway_Inferred_Span_Creation:
'*': irrelevant
express4: *ref_5_26_0
test_otel_drop_in.py:
Test_Otel_Drop_In: missing_feature
k8s_lib_injection/:
Expand Down
2 changes: 0 additions & 2 deletions manifests/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,6 @@ tests/:
Test_DsmSQS: missing_feature
Test_Dsm_Manual_Checkpoint_Inter_Process: missing_feature
Test_Dsm_Manual_Checkpoint_Intra_Process: missing_feature
test_inferred_proxy.py:
Test_AWS_API_Gateway_Inferred_Span_Creation: missing_feature
test_otel_drop_in.py:
Test_Otel_Drop_In: missing_feature
parametric/:
Expand Down
2 changes: 0 additions & 2 deletions manifests/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,6 @@ tests/:
Test_Dsm_Manual_Checkpoint_Intra_Process:
'*': irrelevant
flask-poc: v2.8.0
test_inferred_proxy.py:
Test_AWS_API_Gateway_Inferred_Span_Creation: missing_feature
test_otel_drop_in.py:
Test_Otel_Drop_In: missing_feature
k8s_lib_injection/:
Expand Down
2 changes: 0 additions & 2 deletions manifests/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,6 @@ tests/:
Test_Dsm_Manual_Checkpoint_Intra_Process:
'*': irrelevant
rails70: missing_feature (Endpoint not implemented)
test_inferred_proxy.py:
Test_AWS_API_Gateway_Inferred_Span_Creation: missing_feature
test_otel_drop_in.py:
Test_Otel_Drop_In: missing_feature
k8s_lib_injection/:
Expand Down
91 changes: 0 additions & 91 deletions tests/integrations/test_inferred_proxy.py

This file was deleted.

11 changes: 0 additions & 11 deletions utils/_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -2447,17 +2447,6 @@ def serverless_span_pointers(test_object):
pytest.mark.features(feature_id=328)(test_object)
return test_object

@staticmethod
def aws_api_gateway_inferred_span_creation(test_object):
"""
AWS Api Gateway: Tests that API Gateway inferred span creation works as expected
https://feature-parity.us1.prod.dog/#/?feature=341
"""
pytest.mark.features(feature_id=341)(test_object)

return test_object

@staticmethod
def parametric_endpoint_parity(test_object):
"""
Expand Down
7 changes: 0 additions & 7 deletions utils/build/docker/nodejs/express4/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const { spawnSync } = require('child_process')
const pgsql = require('./integrations/db/postgres')
const mysql = require('./integrations/db/mysql')
const mssql = require('./integrations/db/mssql')
const apiGateway = require('./integrations/api_gateway')

const multer = require('multer')
const uploadToMemory = multer({ storage: multer.memoryStorage(), limits: { fileSize: 200000 } })
Expand Down Expand Up @@ -192,12 +191,6 @@ try {
console.error('DSM routes initialization has failed', e)
}

try {
apiGateway.initRoutes(app, tracer)
} catch (e) {
console.error('Api Gateway routes initialization has failed', e)
}

app.get('/kafka/produce', (req, res) => {
const topic = req.query.topic

Expand Down
14 changes: 0 additions & 14 deletions utils/build/docker/nodejs/express4/integrations/api_gateway.js

This file was deleted.

0 comments on commit 173aeb4

Please sign in to comment.