Skip to content

Commit 997ea2f

Browse files
authored
AutoTest.md Doc Fix (#373)
* OKE-Latest+E3.Flex * Revert "OKE-Latest+E3.Flex" This reverts commit 0255f63. * Update AutoTest.md
1 parent d45c984 commit 997ea2f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

grabdish/docs/AutoTest.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ Here is how to run an automated test in your free tier tenancy or with a Live La
77
1. (Free Tier Only) Clean up your existing tenancy so that you have disk space and the docker cache is empty:
88
```
99
docker image prune -a -f
10-
csreset -a
10+
csreset -a <<< 'y'
1111
```
1212

1313
2. (Free Tier Only) From the OCI Console, make space for a new auth token. The limit is 2.
1414

15-
3. (Free Tier Only) Create a directory to run the test:
15+
3. (Free Tier Only) Create a directory to run the test and name your compartment:
1616
```
1717
export TEST_DIRECTORY=gd`awk 'BEGIN { srand(); print int(1 + rand() * 1000000)}'`
1818
echo "Test directory $TEST_DIRECTORY"
1919
mkdir $TEST_DIRECTORY
2020
cd $TEST_DIRECTORY
21+
export TEST_COMPARTMENT="$TEST_DIRECTORY"
22+
export TEST_PARENT_COMPARTMENT_OCID='$OCI_TENANCY'
2123
```
2224

2325
4. (Free Tier Only) Register your user OCID:
@@ -40,11 +42,8 @@ git clone -b "$GITHUB_BRANCH" --single-branch "https://github.com/${GITHUB_USER}
4042

4143
7. Execute the setup. Note in the Live Labs case, the setup will prompt for the compartment OCID and an auth token.
4244
```
43-
sed -i.bak '/grabdish/d' ~/.bashrc
44-
echo "source $PWD/microservices-datadriven/grabdish/env.sh" >>~/.bashrc
45-
source microservices-datadriven/grabdish/env.sh
46-
source setup.sh
47-
45+
source microservices-datadriven/workshops/dcms-oci/source.env
46+
time setup
4847
```
4948

5049
8. Execute the test
@@ -55,6 +54,6 @@ source test.sh
5554

5655
9. Clean up
5756
```
58-
source destroy.sh
57+
time teardown
5958
6059
```

0 commit comments

Comments
 (0)