mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-06 04:21:15 +00:00
Changed module name to sailpoint-cli so it is clearer on the company name
This commit is contained in:
6
.github/workflows/prb_windows.yml
vendored
6
.github/workflows/prb_windows.yml
vendored
@@ -2,12 +2,12 @@ name: PRB
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sp-cli-windows:
|
sailpoint-cli-windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,6 +2,6 @@
|
|||||||
.vscode
|
.vscode
|
||||||
|
|
||||||
# CLI binary
|
# CLI binary
|
||||||
sp-cli
|
sailpoint-cli
|
||||||
|
|
||||||
data
|
data
|
||||||
|
|||||||
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -4,7 +4,7 @@
|
|||||||
@Library('sailpoint/jenkins-release-utils')_
|
@Library('sailpoint/jenkins-release-utils')_
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Jenkins pipeline for building and uploading sp-cli docker image.
|
* Jenkins pipeline for building and uploading sailpoint-cli docker image.
|
||||||
*/
|
*/
|
||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent none
|
||||||
@@ -51,11 +51,11 @@ pipeline {
|
|||||||
RELEASE_BRANCH = "main"
|
RELEASE_BRANCH = "main"
|
||||||
|
|
||||||
// The name of service being released
|
// The name of service being released
|
||||||
SERVICE_NAME = "sp-cli"
|
SERVICE_NAME = "sailpoint-cli"
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build and push sp-cli') {
|
stage('Build and push sailpoint-cli') {
|
||||||
when {
|
when {
|
||||||
branch env.RELEASE_BRANCH
|
branch env.RELEASE_BRANCH
|
||||||
}
|
}
|
||||||
|
|||||||
6
Makefile
6
Makefile
@@ -22,10 +22,10 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
docker/build: docker/login
|
docker/build: docker/login
|
||||||
docker build -t sailpoint-oss/sp-cli:$(VERSION) -f Dockerfile .
|
docker build -t sailpoint-oss/sailpoint-cli:$(VERSION) -f Dockerfile .
|
||||||
|
|
||||||
docker/push: docker/build
|
docker/push: docker/build
|
||||||
docker tag sailpoint-oss/sp-cli:$(VERSION) 406205545357.dkr.ecr.us-east-1.amazonaws.com/sailpoint-oss/sp-cli:$(VERSION)
|
docker tag sailpoint-oss/sailpoint-cli:$(VERSION) 406205545357.dkr.ecr.us-east-1.amazonaws.com/sailpoint-oss/sailpoint-cli:$(VERSION)
|
||||||
docker push 406205545357.dkr.ecr.us-east-1.amazonaws.com/sailpoint-oss/sp-cli:$(VERSION)
|
docker push 406205545357.dkr.ecr.us-east-1.amazonaws.com/sailpoint-oss/sailpoint-cli:$(VERSION)
|
||||||
|
|
||||||
.PHONY: clean mocks test install .docker/login .docker/build .docker/push
|
.PHONY: clean mocks test install .docker/login .docker/build .docker/push
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConnClient is an sp connect client for a specific connector
|
// ConnClient is an sp connect client for a specific connector
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
const TimeFormatLocal = `2006-01-02T15:04:05.000-07:00`
|
const TimeFormatLocal = `2006-01-02T15:04:05.000-07:00`
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/sailpoint-oss/sp-cli/mocks"
|
"github.com/sailpoint-oss/sailpoint-cli/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewConnCreateCmd(t *testing.T) {
|
func TestNewConnCreateCmd(t *testing.T) {
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/sailpoint-oss/sp-cli/mocks"
|
"github.com/sailpoint-oss/sailpoint-cli/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewConnCreateVersionCmd_missingRequiredFlags(t *testing.T) {
|
func TestNewConnCreateVersionCmd_missingRequiredFlags(t *testing.T) {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/sailpoint-oss/sp-cli/mocks"
|
"github.com/sailpoint-oss/sailpoint-cli/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewConnGetCmd_missingRequiredFlags(t *testing.T) {
|
func TestNewConnGetCmd_missingRequiredFlags(t *testing.T) {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ package connector
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ package connector
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ package connector
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ package connector
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ package connector
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ package connector
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/sailpoint-oss/sp-cli/mocks"
|
"github.com/sailpoint-oss/sailpoint-cli/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Unit tests for conn_invoke.go and its subcommands
|
// Unit tests for conn_invoke.go and its subcommands
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ package connector
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/sailpoint-oss/sp-cli/mocks"
|
"github.com/sailpoint-oss/sailpoint-cli/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewConnListCmd(t *testing.T) {
|
func TestNewConnListCmd(t *testing.T) {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ package connector
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ package connector
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/sailpoint-oss/sp-cli/mocks"
|
"github.com/sailpoint-oss/sailpoint-cli/mocks"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Unit tests for conn.go
|
// Unit tests for conn.go
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/sailpoint-oss/sp-cli/mocks"
|
"github.com/sailpoint-oss/sailpoint-cli/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewConnUpdateCmd_missingRequiredFlags(t *testing.T) {
|
func TestNewConnUpdateCmd_missingRequiredFlags(t *testing.T) {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
"github.com/logrusorgru/aurora"
|
"github.com/logrusorgru/aurora"
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
connvalidate "github.com/sailpoint-oss/sp-cli/cmd/connector/validate"
|
connvalidate "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/validate"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,9 @@ import (
|
|||||||
|
|
||||||
"github.com/logrusorgru/aurora"
|
"github.com/logrusorgru/aurora"
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
connvalidate "github.com/sailpoint-oss/sp-cli/cmd/connector/validate"
|
connvalidate "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/validate"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"gopkg.in/alessio/shellescape.v1"
|
"gopkg.in/alessio/shellescape.v1"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/sailpoint-oss/sp-cli/mocks"
|
"github.com/sailpoint-oss/sailpoint-cli/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewConnVersionsCmd_missingRequiredFlags(t *testing.T) {
|
func TestNewConnVersionsCmd_missingRequiredFlags(t *testing.T) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kr/pretty"
|
"github.com/kr/pretty"
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
var accountCreateChecks = []Check{
|
var accountCreateChecks = []Check{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/kr/pretty"
|
"github.com/kr/pretty"
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
var accountReadChecks = []Check{
|
var accountReadChecks = []Check{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
var accountUpdateChecks = []Check{
|
var accountUpdateChecks = []Check{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Checks = []Check{}
|
var Checks = []Check{}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/kr/pretty"
|
"github.com/kr/pretty"
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
var entitlementReadChecks = []Check{
|
var entitlementReadChecks = []Check{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
var testConnChecks = []Check{
|
var testConnChecks = []Check{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// entitlementAttr returns the attribute for entitlements
|
// entitlementAttr returns the attribute for entitlements
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
connclient "github.com/sailpoint-oss/sp-cli/cmd/connector/client"
|
connclient "github.com/sailpoint-oss/sailpoint-cli/cmd/connector/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Validator runs checks for a specific connector
|
// Validator runs checks for a specific connector
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ package root
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/cmd/connector"
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/connector"
|
||||||
"github.com/sailpoint-oss/sp-cli/cmd/transform"
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/transform"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"github.com/sailpoint-oss/sp-cli/mocks"
|
"github.com/sailpoint-oss/sailpoint-cli/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Expected number of subcommands to `sp` root command
|
// Expected number of subcommands to `sp` root command
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
transmodel "github.com/sailpoint-oss/sp-cli/cmd/transform/model"
|
transmodel "github.com/sailpoint-oss/sailpoint-cli/cmd/transform/model"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
transmodel "github.com/sailpoint-oss/sp-cli/cmd/transform/model"
|
transmodel "github.com/sailpoint-oss/sailpoint-cli/cmd/transform/model"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ package transform
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/util"
|
"github.com/sailpoint-oss/sailpoint-cli/util"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module github.com/sailpoint-oss/sp-cli
|
module github.com/sailpoint-oss/sailpoint-cli
|
||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
||||||
|
|||||||
4
main.go
4
main.go
@@ -5,8 +5,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/sailpoint-oss/sp-cli/client"
|
"github.com/sailpoint-oss/sailpoint-cli/client"
|
||||||
"github.com/sailpoint-oss/sp-cli/cmd/root"
|
"github.com/sailpoint-oss/sailpoint-cli/cmd/root"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user