micro auth_test

//go:build integration // +build integration package test import ( "encoding/json" "errors" "fmt" "strings" "testing" "time" "github.com/micro/micro/v3/client/cli/namespace" "github.com/micro/micro/v3/util/config" ) // Test no default account
  • Views: 20
  • Keywords: micro,

micro config_test

//go:build integration // +build integration package test import ( "encoding/json" "errors" "fmt" "reflect" "strings" "testing" "time" ) func TestConfig(t *testing.T) { TrySuite(t, testConfig, retryCount) } func testConfig(t *T) { t.Parallel
  • Views: 20
  • Keywords: micro,

micro login_test

//go:build kind // +build kind package test import ( "fmt" "strings" "testing" "time" ) // TestCorruptedTokenLogin checks that if we corrupt the token we successfully reset the config and clear the token // to allow the user to login again rather
  • Views: 15
  • Keywords: micro,

micro misc_test

//go:build integration // +build integration package test import ( "fmt" "os" "os/exec" "strings" "testing" ) func TestNew(t *testing.T) { TrySuite(t, testNew, retryCount) } func testNew(t *T) { t.Parallel() tcs := []struct { svcName st
  • Views: 33
  • Keywords: micro,

micro multitenancy_test

//go:build integration // +build integration package test import ( "errors" "fmt" "strings" "testing" "time" ) // Test for making sure config and store values across namespaces // are correctly isolated func TestNamespaceConfigIsolation(t *testin
  • Views: 27
  • Keywords: micro,

micro store_test

//go:build integration // +build integration package test import ( "errors" "fmt" "strings" "testing" "time" ) func TestStore(t *testing.T) { TrySuite(t, testStore, 5) } func testStore(t *T) { t.Parallel() serv := NewServer(t, WithLogin()) d
  • Views: 28
  • Keywords: micro,

micro main

package main import ( "dep-test-service/handler" "dep-test-service/subscriber" "fmt" dep "dep-test-service/proto/dep" dependency "dependency" "github.com/micro/micro/v3/service" log "github.com/micro/micro/v3/service/logger" ) func main() { /
  • Views: 27
  • Keywords: micro,

micro test_framework

package test import ( "bytes" "errors" "fmt" "math/rand" "os" "os/exec" "path/filepath" "runtime" "runtime/debug" "strings" "sync" "syscall" "testing" "time" "github.com/micro/micro/v3/client/cli/namespace" "github.com/micro/micro/v3/ut
  • Views: 26
  • Keywords: micro,

micro dep.pb

// Code generated by protoc-gen-go. DO NOT EDIT. // source: test/dep-test/dep-test-service/proto/dep/dep.proto package service_dep import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "g
  • Views: 34
  • Keywords: micro,

micro events_test

//go:build integration // +build integration package test import ( "errors" "strings" "testing" "time" ) func TestEventsStream(t *testing.T) { // temporarily nuking this test return TrySuite(t, testEventsStream, retryCount) } func testEventsSt
  • Views: 30
  • Keywords: micro,