Skip to content

Commit b0294eb

Browse files
committed
Revert "chore(test): Untrack influxdb3 data and plugins used in Docker configurations and testing"
This reverts commit 37fdedd.
1 parent 288b1a3 commit b0294eb

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

test/influxdb3/auth.test.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
# [core3,enterprise3]
3+
# Bearer auth works with v1 /query
4+
curl -v http://localhost:8181/query \
5+
--header "Authorization: Bearer ${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN}" \
6+
--data-urlencode "db=sensors" \
7+
--data-urlencode "q=SELECT * FROM home"
8+
9+
# Bearer auth works with v1 /write
10+
curl -v "http://localhost:8181/write?db=sensors" \
11+
--header "Authorization: Bearer ${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN}" \
12+
--data-raw "sensors,location=home temperature=23.5 1622547800"
13+
14+
# Basic auth works with v1 /write
15+
curl -v "http://localhost:8181/write?db=sensors" \
16+
--user "admin:${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN}" \
17+
--data-raw "sensors,location=home temperature=23.5 1622547800"
18+
19+
# URL auth works with v1 /write
20+
curl -v "http://localhost:8181/write?db=sensors&u=admin&p=${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN}" \
21+
--data-raw "sensors,location=home temperature=23.5 1622547800"
22+
23+
# Token auth works with /api/v2/write
24+
curl -v http://localhost:8181/write?db=sensors \
25+
--header "Authorization: Token ${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN}" \
26+
--data-raw "sensors,location=home temperature=23.5 1622547800"

test/influxdb3/database.test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# [core3,enterprise3]
2+
# Delete a database with hard delete at date
3+
curl -v -X DELETE "http://localhost:8181/api/v3/configure/database?hard_delete_at=20250701&db=sensors" \
4+
--header "Authorization: Bearer ${INFLUXDB3_ENTERPRISE_ADMIN_TOKEN}"

0 commit comments

Comments
 (0)