Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

test: remove python code #699

Merged
merged 2 commits into from
Jan 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ build_for_integration_test:
-o bin/br.test && \
$(GOBUILD) $(RACEFLAG) -o bin/locker tests/br_key_locked/*.go && \
$(GOBUILD) $(RACEFLAG) -o bin/gc tests/br_z_gc_safepoint/*.go && \
$(GOBUILD) $(RACEFLAG) -o bin/oauth tests/br_gcs/*.go && \
$(GOBUILD) $(RACEFLAG) -o bin/rawkv tests/br_rawkv/*.go) || (make failpoint-disable && exit 1)
@make failpoint-disable

Expand Down
25 changes: 25 additions & 0 deletions tests/br_gcs/oauth.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2020 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.

package main

import (
"net/http"
)

func main() {
http.HandleFunc("/oauth/token", func(w http.ResponseWriter, r *http.Request) {
_, _ = w.Write([]byte(`{"access_token": "ok", "token_type":"service_account", "expires_in":3600}`))
})
_ = http.ListenAndServe(":5000", nil)
}
9 changes: 0 additions & 9 deletions tests/br_gcs/oauth.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/br_gcs/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ while ! curl -o /dev/null -v -s "http://$GCS_HOST:$GCS_PORT/"; do
done

# start oauth server
FLASK_APP=tests/$TEST_NAME/oauth.py flask run &
bin/oauth &
OAUTH_ID=$!

stop_gcs() {
Expand Down