-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d22c7b
commit 64c12bf
Showing
6 changed files
with
11 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## July 29 2019 - v0.10.2 | ||
## July 29 2019 - v0.10.3 | ||
* Patched mysql script parsing | ||
|
||
## July 10 2019 - v0.10.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,6 @@ Prerequisites: | |
var endlyManager = endly.New() | ||
var endlyContext = endlyManager.NewContext(toolbox.NewContext()) | ||
|
||
|
||
|
||
func setup(t *testing.T) { | ||
|
||
err := startOracle() | ||
|
@@ -51,7 +49,7 @@ func TestDsunit_Oracle(t *testing.T) { | |
setup(t) | ||
defer tearDown(t) | ||
|
||
// showCreateTable() | ||
// showCreateTable() | ||
|
||
if dsunit.InitFromURL(t, "config/init.json") { | ||
if !dsunit.PrepareFor(t, "mydb", "data", "use_case_1") { | ||
|
@@ -75,18 +73,16 @@ func showCreateTable() error { | |
return err | ||
} | ||
dialect := dsc.GetDatastoreDialect("oci8") | ||
DDL, err := dialect.ShowCreateTable(manager, "events") | ||
DDL, err := dialect.ShowCreateTable(manager, "events") | ||
|
||
dd := strings.Replace(DDL, "events", "events_993999", 1) | ||
dd = strings.Replace(dd, ";", "", 1) | ||
|
||
_, err =manager.Execute(dd ) | ||
_, err = manager.Execute(dd) | ||
fmt.Printf("DML: %v %v\n", DDL, err) | ||
return nil | ||
} | ||
|
||
|
||
|
||
func runSomeBusinessLogic() error { | ||
config, err := dsc.NewConfigWithParameters("oci8", "mydb/[email protected]:1521/xe", "", nil) | ||
if err != nil { | ||
|
@@ -113,7 +109,7 @@ func runSomeBusinessLogic() error { | |
func startOracle() error { | ||
|
||
_, err := endlyManager.Run(endlyContext, &docker.RunRequest{ | ||
Image: "thebookpeople/oracle-xe-11g", | ||
Image: "thebookpeople/oracle-xe-11g", | ||
Env: map[string]string{ | ||
"ORACLE_ALLOW_REMOTE": "true", | ||
}, | ||
|
@@ -127,7 +123,7 @@ func startOracle() error { | |
|
||
func stopOracle() error { | ||
_, err := endlyManager.Run(endlyContext, &docker.StopRequest{ | ||
Name: "ora_dsunit", | ||
Name: "ora_dsunit", | ||
}) | ||
return err | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters