Skip to content

Commit

Permalink
Add integration tests for API servers (#112)
Browse files Browse the repository at this point in the history
* add pipeline e2e test back

* delete samples

* more changes to pipeline test

* add delete run/experiment

* update test name

* stage

* add api

* fii

* add tensorboard routing rule (#143)

* add tensorboard routing rule

* rename tb routing rule

* address comments

* remove debugger

* fix url prefix

* more fixes

* update tests

* revert debugging

* update

* update test

* fix

* update test

* fix

* fix pipeline tests

* exp

* update run

* update jobs
  • Loading branch information
IronPan authored and k8s-ci-robot committed Nov 10, 2018
1 parent f0c189f commit b494e3d
Show file tree
Hide file tree
Showing 45 changed files with 2,391 additions and 688 deletions.
4 changes: 0 additions & 4 deletions backend/api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,3 @@ all:
# Instructions to install the 'autogen' command are located here:
# https://github.com/mbrukman/autogen
find ./ -name "*.go" -exec autogen.sh -i --no-tlc -c "Google LLC" -l apache {} \;

# Hack to fix an issue with go-swagger.
# See https://github.com/go-swagger/go-swagger/issues/1170
cp ./text_marshmaller_hack.txt ./go_http_client/pipeline_upload_model/text_marshmaller_hack.go
11 changes: 11 additions & 0 deletions backend/api/experiment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ syntax = "proto3";
package api;

import "google/api/annotations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
import "protoc-gen-swagger/options/annotations.proto";

Expand Down Expand Up @@ -73,6 +74,12 @@ service ExperimentService {
get: "/apis/v1beta1/experiments"
};
}

rpc DeleteExperiment(DeleteExperimentRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/apis/v1beta1/experiments/{id}"
};
}
}

message CreateExperimentRequest {
Expand All @@ -96,6 +103,10 @@ message ListExperimentsResponse {
string next_page_token = 2;
}

message DeleteExperimentRequest{
string id = 1;
}

message Experiment {
// Output. Unique experiment ID. Generated by API server.
string id = 1;
Expand Down
147 changes: 112 additions & 35 deletions backend/api/go_client/experiment.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions backend/api/go_client/experiment.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b494e3d

Please sign in to comment.