Giter VIP home page Giter VIP logo

terraform-provider-servicenow's Introduction

Terraform ServiceNow Provider

An experimental Terraform provide to manage objects and configurations in a ServiceNow instance.

Terraform LogoServiceNow Logo

Github Actions Report Coverage Status Go Report Card Release Badge License Badge

terraform-provider-servicenow's People

Contributors

dguerincoveo avatar mikegron avatar tylerhatton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

terraform-provider-servicenow's Issues

Tests are failing with missing method GetObjectByTitle

I wanted to submit an update to allow the provider to read configuration from environment variables, but the unit tests appear to be failing on the master branch before my changes.

go test -i $(go list ./... | grep -v 'vendor') || exit 1                                                   
?   	github.com/tylerhatton/terraform-provider-servicenow	[no test files]
echo $(go list ./... | grep -v 'vendor') | xargs -t -n4 go test  -timeout=30s -parallel=4                    
?   	github.com/tylerhatton/terraform-provider-servicenow	[no test files]
?   	github.com/tylerhatton/terraform-provider-servicenow/servicenow	[no test files]
?   	github.com/tylerhatton/terraform-provider-servicenow/servicenow/client	[no test files]
--- FAIL: TestResourcesCanRead (0.00s)
panic: interface conversion: *resources_test.ClientMock is not client.ServiceNowClient: missing method GetObjectByTitle [recovered]
	panic: interface conversion: *resources_test.ClientMock is not client.ServiceNowClient: missing method GetObjectByTitle

goroutine 37 [running]:
testing.tRunner.func1.2({0x1057896a0, 0x14000438360})
	/Users/drew/.asdf/installs/golang/1.20.5/go/src/testing/testing.go:1526 +0x1c8
testing.tRunner.func1()
	/Users/drew/.asdf/installs/golang/1.20.5/go/src/testing/testing.go:1529 +0x384
panic({0x1057896a0, 0x14000438360})
	/Users/drew/.asdf/installs/golang/1.20.5/go/src/runtime/panic.go:884 +0x204
github.com/tylerhatton/terraform-provider-servicenow/servicenow/resources.readResourceAlias(0x140004e0000, {0x1058361a0?, 0x14000436190})
	/Users/drew/projects/github.com/tylerhatton/terraform-provider-servicenow/servicenow/resources/resource_alias.go:94 +0x30
github.com/tylerhatton/terraform-provider-servicenow/servicenow/resources_test.TestResourcesCanRead(0x0?)
	/Users/drew/projects/github.com/tylerhatton/terraform-provider-servicenow/servicenow/resources/resources_test.go:129 +0xa4
testing.tRunner(0x140004fd380, 0x105859f00)
	/Users/drew/.asdf/installs/golang/1.20.5/go/src/testing/testing.go:1576 +0x10c
created by testing.(*T).Run
	/Users/drew/.asdf/installs/golang/1.20.5/go/src/testing/testing.go:1629 +0x368
FAIL	github.com/tylerhatton/terraform-provider-servicenow/servicenow/resources	0.186s
FAIL

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.